<ul>
	<?php $memberDB=M('Member'); ?>
    <volist name="list" id="vo">
        <li>
            <em class="tree-btn" style="cursor:pointer;">+</em>
            <div style="display:inline; cursor:pointer;" class="selectitem"  >
                {$vo.name}
                <?php 
                    $memNum=$memberDB->where('site_id='.__SITEID__.' and memberpositionid like "%,'.$vo['id'].',%"')->count();
                    if($memNum){
                    	echo('('.$memNum.'人)');
                    }
                ?>
                <div class="dataitem" style="display:none;">
                    <span style="display:inline-block;" class="itemspan <if condition="isset($vo['member_name'])">member_positionline</if>">
                        <input type="hidden" name="name" value="{$vo.name}">
                        <input type="hidden" value="{$vo.id}" name="id">
                        {$vo.name}
                        <a href="javascript:void(0);" style="color:#2F9C49; padding:0 8px;" class="deletedata">
                            x
                        </a>
                    </span>
                </div>
            </div>
            <!--sub#{$vo.id}-->
        </li>
    </volist>
</ul>

<!--<if condition="$membertype eq 000">onclick="return false;"</if>-->
